import sqlalchemy
from   sqlalchemy import Column, Integer, String, create_engine
from   sqlalchemy.ext.declarative import declarative_base
from   sqlalchemy.orm import sessionmaker

lego_MySQL_Config = 'mysql+mysqldb://root:lovelegocalendar@localhost:3306/legocalendar'

def make_legocal_session():
    engine = create_engine(lego_MySQL_Config)
    Session = sessionmaker(bind = engine)
    return Session()
